Takes time . why not just sort lines by length , and pipe the result through 為什么不像下面這樣就按長度對行排序,然后通過
If you write a half - dozen programs , each of which sorts lines , you can end up having to fix similar bugs half a dozen times instead of having one better - maintained 如果您編寫半打程序,其中每個都對行排序,您最終可能必須六次修復六個類似的bug ,而不是去使用一個得到更好維護的